package shipping.api;

import shipping.api.vo.InvoiceIdAndOrderNoVo;
import shipping.model.InvoiceInfo;

import java.util.List;
import java.util.Map;

/**
 * 发票物流信息API
 * Created by Liang Wenxu on 2017-03-15.
 */
public interface InvoiceInfoApi {

    public List<InvoiceInfo> createInvoiceShipping(List<InvoiceIdAndOrderNoVo> invoiceIdAndOrderNoVos);

    /**
     * 根据MemberInvoice的id查找发票物流记录
     * @param memberInvoiceId
     * @return
     */
    public List<InvoiceInfo> findByMemberInvoice(String memberInvoiceId);

    /**
     * 根据MemberInvoiceId计算已开票数量
     * @param memberInvoiceId
     * @return
     */
    public int countByMemberInvoice(String memberInvoiceId);

    /**
     * 根据MemberInvoiceId计算已开票数量
     * @param memberInvoiceIds
     * @return
     */
    public Map<String, Integer> countByMemberInvoice(List<String> memberInvoiceIds);
}
